home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / regen.idl < prev    next >
Encoding:
Text File  |  2001-07-09  |  4.7 KB  |  172 lines

  1.         /*
  2.             *    Returns the user-visible description of this $$COM_Class_Name$$Method.
  3.             *    Required.
  4.             */
  5.  
  6.             [
  7.                  propget
  8.             ]
  9.             HRESULT Description(
  10.                 [out, retval] BSTR* prop
  11.                 );
  12.  
  13.             /*
  14.             *    Returns the persistent class id for this $$COM_Class_Name$$Method's property section.
  15.             *    Required.
  16.             */
  17.  
  18.             [
  19.                  propget
  20.             ]
  21.             HRESULT    ClassID(
  22.                 [out, retval]    BSTR* prop
  23.                 );
  24.  
  25.         
  26.             /*
  27.             *     Retrieve types and names for regen properties.
  28.             *     Required even Custom $$COM_Class_Name$$ Object hasn't any own properties.
  29.             */
  30.             HRESULT GetPropertyInfo(
  31.                  [in, out]        VARIANT* Names
  32.                 ,[in, out]        VARIANT* Types
  33.                 ,[in, out]        VARIANT* IDs
  34.                 ,[in, out]        VARIANT* Defaults
  35.                 ,[out, retval]    long* prop
  36.                 );
  37.  
  38.             /*
  39.             *      Get the number of property pages supporting this $$COM_Class_Name$$Method.
  40.             *     Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
  41.             */
  42.  
  43.             HRESULT GetPageInfo(
  44.                  [in]            IDispatch* AGraphic
  45.                 ,[out]            long* StockPages
  46.                 ,[in, out]        VARIANT* Names
  47.                 ,[out, retval]    long* prop
  48.                 );
  49.  
  50.             /*
  51.             *    Function called during TurboCAD start up.
  52.             *    Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't need any initialisation actions.
  53.             */
  54.             HRESULT Initialize(
  55.                  [in]            IDispatch* This$$COM_Class_Name$$Method
  56.                 ,[out, retval]    IMSI_BOOL* prop
  57.                 );
  58.  
  59.             /*
  60.             *    Shows $$COM_Class_Name$$ Method property pages.
  61.             *    Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
  62.             */
  63.  
  64.             HRESULT    PropertyPages(
  65.                  [in]            IDispatch* This$$COM_Class_Name$$Method
  66.                 ,[in, out]        VARIANT* PageNumber
  67.                 ,[out, retval]    IMSI_BOOL* prop
  68.                 );
  69.  
  70.             /*
  71.             *    Exchange and validate Property Pages Data data.
  72.             *    Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
  73.             */
  74.  
  75.             HRESULT    PageControls(
  76.                  [in]            IDispatch* This$$COM_Class_Name$$Method
  77.                 ,[in]            IDispatch* AGraphic
  78.                 ,[in]            long PageNumber
  79.                 ,[in]            IMSI_BOOL SaveProperties
  80.                 ,[out, retval]    IMSI_BOOL* prop
  81.                 );
  82.  
  83.             /*
  84.             *    Unload/destroy Property Pages form/dialog.
  85.             *    Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
  86.             */
  87.  
  88.             HRESULT PageDone(
  89.                  [in]            IDispatch* This$$COM_Class_Name$$Method
  90.                 ,[in, out]        VARIANT* PageNumber
  91.                 );
  92.  
  93.             /*
  94.             *    Function called whenever a new Custom $$COM_Class_Name$$ Object graphic was created.
  95.             *   Optional - can be omitted if Custom $$COM_Class_Name$$ Object don't need to do something with newly created graphic.
  96.             */
  97.  
  98.             HRESULT OnNewGraphic(
  99.                  [in]            IDispatch* CopyGraphic
  100.                 ,[in]            IMSI_BOOL Copy
  101.                 ,[out, retval]    IMSI_BOOL* prop        // False if failure
  102.                 );
  103.  
  104.             /*
  105.             *    Function called whenever a copy of a Custom $$COM_Class_Name$$ Object graphic is being made.
  106.             *   Optional - can be omitted if Custom $$COM_Class_Name$$ Object don't need to do something with copy of the graphic.
  107.             */
  108.  
  109.             HRESULT OnCopyGraphic(
  110.                  [in]            IDispatch* CopyGraphic
  111.                 ,[in]            IDispatch* SourceGraphic
  112.                 ,[in]            VARIANT* pvarMatrix
  113.                 ,[out, retval]    IMSI_BOOL* prop        // not used now
  114.                 );
  115.  
  116.             /*
  117.             *    Notification function called after graphic property is saved.
  118.             *    Required if Custom $$COM_Class_Name$$ Object has own properties.
  119.             */
  120.  
  121.             HRESULT OnPropertyChanged(
  122.                  [in]            IDispatch* AGraphic
  123.                 ,[in]            long PropID
  124.                 ,[in, out]        VARIANT* ValueOld
  125.                 ,[in, out]        VARIANT* ValueNew
  126.                 );
  127.  
  128.             /*
  129.             *    Notification function called before graphic property is saved.
  130.             *   Optional - can be omitted if Custom $$COM_Class_Name$$ Object don't need to perform additional validateion
  131.             *   actions for propertty.
  132.             */
  133.  
  134.             HRESULT OnPropertyChanging(
  135.                  [in]            IDispatch* AGraphic
  136.                 ,[in]            long PropID
  137.                 ,[in, out]        VARIANT* ValueOld
  138.                 ,[in, out]        VARIANT* ValueNew
  139.                 ,[out, retval]    IMSI_BOOL* prop        // True if property could be changed.
  140.                 );
  141.  
  142.             /*
  143.             *    Notification function called before graphic property is retrieved.
  144.             *    Optional.
  145.             */
  146.  
  147.             HRESULT OnPropertyGet(
  148.                  [in]            IDispatch* AGraphic
  149.                 ,[in]            long PropID
  150.                 );
  151.  
  152.             /*
  153.             *    Function called to draw graphic.
  154.             *    Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't draw any non-TurboCAD objects.
  155.             */
  156.  
  157.             HRESULT Draw(
  158.                  [in]            IDispatch* AGraphic
  159.                 ,[in]            IDispatch* AView
  160.                 ,[in]            VARIANT* AMatrix
  161.                 ,[out, retval]    IMSI_BOOL* prop           // True if we did the redraw (no further processing necessary, no children will be drawn
  162.                 );
  163.  
  164.             /*
  165.             *    Called when we need to update our object.
  166.             *    Optional.
  167.             */
  168.  
  169.             HRESULT Regen(
  170.                 [in]            IDispatch* AGraphic
  171.                 );
  172.